<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>店铺信息</title>
<script  type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-3.1.1.min.js"></script>
</head>
<body>
姓名:${protalUser.username }<br>
账号:${protalUser.account }<br>
职位:${post_name!=null?post_name:'店主' }
<form method="post" id="form">
<table>
<tr>
<td>店铺编号</td>
<td>店铺名称</td>
<td>本月目标额</td>
<td>新增客户数</td>
<td>营业记录数</td>
<td>本月营业额</td>
<td>营业额</td>
<td>操作</td>
</tr>
<c:forEach items="${list }" var="list">
<tr>
<td>${list.shop_id }</td>
<td>${list.shop_name }</td>
<td>${list.month_cash_in }</td>

<td>今:${list.xzkhs } 昨:${list.zrxzkhs }</td><!-- xzkhs 新增客户数,zrxzkhs 昨日新增客户数 -->

<td>今:${list.dayyyjls } 昨:${list.yesterdayyyjls }</td><!--  day代表今日  dayyyjls 今日营业记录数   yesterdayyyjls 昨日营业记录数    -->
<td>${list.monthyye }</td>

<td>今:${list.dayyye } 昨:${list.yesterdayyye }</td><!-- dayyye今日营业额       yesterdayyye昨日营业额-->
<td>
	<c:if test="${protalUser.user_type=='1' }">
		<button type="button" onclick="dianpu(${list.shop_id})">我的店铺</button>
	</c:if>
</td>
</tr>
</c:forEach>
</table>
</form>
</body>
<script>
	function dianpu(shop_id){
		 $("#form").attr("action","${pageContext.request.contextPath}/proltal/zn1/findDianPu?shop_id="+shop_id);
		 $("#form").submit(); 
	}
</script>
</html>